<?php
/*
 * Forescore
 * A golf scoring and analysis app
 * 
 * @license   MIT License
 * @package   Forescore
 * @author    $Author: brian@brianvoss.com $
 * @version   $Id: Bootstrap.php 12 2013-06-28 03:28:14Z brian@brianvoss.com $
 * @lastrevision   $Date: 2013-06-28 03:28:14 +0000 (Fri, 28 Jun 2013) $
 * @filesource     $URL: http://forescore.googlecode.com/svn/trunk/application/Bootstrap.php $
 */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initDbConnection()
	{
		$config = new Zend_Config_Ini( APPLICATION_PATH . DIRECTORY_SEPARATOR . "configs" .  DIRECTORY_SEPARATOR . "db.ini", APPLICATION_ENV );
		$db = Zend_Db::factory($config->database->adapter, $config->database->params->toArray());
		Zend_Db_Table_Abstract::setDefaultAdapter($db);
	}

}

